#pragma once
#ifndef __HWINSECURITY_H__
#define __HWINSECURITY_H__

#include "hwindef.h"


namespace harlinn
{
    namespace windows
    {
        class SecurityAttributes : SECURITY_ATTRIBUTES
        {

        public:
            SecurityAttributes()
            {
                nLength = sizeof(SECURITY_ATTRIBUTES);
                lpSecurityDescriptor = nullptr;
                bInheritHandle = FALSE;
            }

            SecurityAttributes(bool inheritHandle)
            {
                nLength = sizeof(SECURITY_ATTRIBUTES);
                lpSecurityDescriptor = nullptr;
                bInheritHandle = inheritHandle?TRUE:FALSE;
            }


        };
    };

};

#endif //__HWINSECURITY_H__
